package com.lagou.zk;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.json.JSONUtil;
import org.I0Itec.zkclient.ZkClient;

public class JDBCParam {
    private String url;
    private String name;
    private String password;

    public JDBCParam(String url, String name, String password) {
        this.url = url;
        this.name = name;
        this.password = password;
    }

    public JDBCParam() {
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public static void main(String[] args) {
        JDBCParam jdbcParam = new JDBCParam("jdbc:mysql://linux133:3306/azkaban?characterEncoding=utf-8&useSSL=false", "azkaban", "azkaban");
        System.out.println(JSONUtil.toJsonStr(jdbcParam));
    }
}

